how to differentiate cosecant